<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>

                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-status="{:$auth->check('finance/extract/week/status')}"
                           data-operate-check="{:$auth->check('finance/extract/week/check')}"
                           data-operate-edit="{:$auth->check('finance/extract/week/edit')}"
                           data-operate-del="{:$auth->check('finance/extract/week/delete')}"
                           data-operate-books="{:$auth->check('finance/extract/week/finance_books')}"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
<script id="customformtpl" type="text/html">
    <!--form表单必须添加form-commsearch这个类-->
    <form action="" class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap">
        <fieldset>
            <div class="row">
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="id" class="control-label col-xs-4">{:__('Id')}</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="id-operate" data-name="id" value="=" readonly="" />
                        <input type="text" class="form-control" name="id" value="" placeholder="{:__('Id')}" id="id" data-index="1" />
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="name" class="control-label col-xs-4">{:__('Name')}</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="name-operate" data-name="name" value="=" readonly="" />
                        <input type="text" class="form-control" name="name" value="" placeholder="{:__('Name')}" id="name" data-index="2" />
                    </div>
                </div>

                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="department" class="control-label col-xs-4">{:__('Department')}</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="department-operate" data-name="department" value="FIND_IN_SET" readonly="" />
                        <select class="form-control" name="department">
                            <option value="">选择</option>
                            {foreach name="groupdata" item="vo"}
                            <option value="{$key}"  <?php if("'".request()->get("department")."'" == "'".$key."'"){ echo 'selected';} ?> >{$vo}</option>
                            {/foreach}
                        </select>
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="division_method" class="control-label col-xs-4">{:__('Division_method')}</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="division_method-operate" data-name="division_method" value="=" readonly="" />
                        <select class="form-control" name="division_method">
                            <option value="">选择</option>
                            {foreach name="divisionMethodList" item="vo"}
                            <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo}</option>
                            {/foreach}
                        </select>
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label for="status" class="control-label col-xs-4">{:__('Status')}</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="status-operate" data-name="status" value="=" readonly="" />
                        <select class="form-control" name="status">
                            <option value="">选择</option>
                            {foreach name="statusList" item="vo"}
                            <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo}</option>
                            {/foreach}
                        </select>
                    </div>
                </div>

                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <div class="col-sm-8 col-xs-offset-4">
                        <button type="submit" class="btn btn-success" formnovalidate="">提交</button>
                        <button type="reset" class="btn btn-default">重置</button>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</script>